package com.event.listener.impl;

import com.event.event.WeatherEvent;
import com.event.event.impl.SnowWeatherEvent;
import com.event.listener.WeatherListener;

public class SnowListener implements WeatherListener {
    public void onWeatherEvent(WeatherEvent event) {
        if (event instanceof SnowWeatherEvent) {
            System.out.println(event.getWeather());
        }
    }
}
